﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HienThiSanPham.ascx.cs" Inherits="Control_HienThiSanPham" %>
<style type="text/css">
    .Sanpham1
    {
        width: 190px;
    }
    .Sanpham2
    {
        width: 100%;
        border-style: solid;
        border-width: 1px;
    }
    .Sanpham3
    {
        height: 25px;
    }
    .style1
    {
        width: 239px;
    }
</style>

<table align="center" cellpadding="2" class="Sanpham1" width="190px" >
    <tr>
        <td class="style1" width="190px">
            <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" 
                DataKeyField="MaSP">
                <ItemTemplate>
                    <table align="center" cellpadding="2" class="Sanpham2">
                        <tr>
                            <td align="center">
                                <asp:Image ID="Image1" runat="server" 
                                    ImageUrl='<%# "~/Hinh/"+Eval("HinhSP") %>' Height="230px" Width="190px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="Sanpham3" bgcolor="#0000CC">
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# "~/TrangChu/Index.aspx?MaSP="+Eval("MaSP") %>' 
                                    Text='<%# Eval("TenSP") %>' Font-Bold="True" Font-Size="Large" 
                                    ForeColor="White"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiaSP")+ "VND" %>' 
                                    Font-Bold="True" Font-Size="Large" ForeColor="#009933"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>

